package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.Channel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ChannelRepository extends JpaRepository<Channel,Integer>, JpaSpecificationExecutor<Channel> {

    List<Channel> findAllByAvailable(Boolean available);

    Channel findByChannelId(Integer channelId);
}
